package edu.kjxy.worker0322;

public class worker10 {

	public static void main(String[] args) {
		int[] array = {3, 6, 54, 8, 4, 2, 101, 4, 11, 22, 33, 55};
		
		for (int i = 0; i < array.length - 1; i++) {
			int max = i;
			for(int j = i; j < array.length; j++) {
				if(array[max] < array[j]) {
					int tmp = array[max];
					array[max] = array[j];
					array[j] = tmp;
				}
			}
		}
		for (int i = 0; i < array.length; i++) {
			System.out.print(array[i] + " ");
		}
	}

}
